import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import qs from 'qs'
// 导入全局样式表
import './assets/css/global.css'
// 引入iconfont样式
import './assets/iconfont/icon.css'

// 设置WEB服务器的端口为5000
axios.defaults.baseURL = 'http://127.0.0.1:5000/v1/'
Vue.prototype.axios = axios;
Vue.prototype.qs = qs;

//导入element-ui
import Element from 'element-ui'
//导入element-ui样式
import 'element-ui/lib/theme-chalk/index.css'

//将element-ui注册为组件
Vue.use(Element);

Vue.config.productionTip = false

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')